home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gvBackgroundSprite, gCDPATH, DIR_SYM, SFX_EXT, gvCurLetter, gvCurNumber, gvTrack, gvLocaleList
- set vColorCast to gvCurLetter & string(gvCurNumber) & "color"
- set the castNum of sprite gvBackgroundSprite to cast vColorCast
- puppetSound(gvCurLetter & SFX_EXT)
- updateStage()
- repeat while soundBusy(1)
- if the mouseDown then
- exit repeat
- end if
- end repeat
- set vCurPosInList to getPos(gvLocaleList, gvCurLetter)
- if vCurPosInList = count(gvLocaleList) then
- set gvCurLetter to getAt(gvLocaleList, 1)
- else
- set gvCurLetter to getAt(gvLocaleList, vCurPosInList + 1)
- end if
- go(the frame)
- end
-